#ifndef DATETIME_H
#define DATETIME_H
#include <iostream>
using namespace std;

class DateTime
{

	  private:
              double day;
              double month;
              double year;
              double hour;
              double minute;

      public:
             //Constructores
             DateTime(void);// por defecto
             DateTime(double YY, double MM, double DD, double h, double m);// indicando fecha y hora
             DateTime(double YY, double MM, double DD);// indicando solamente la fecha
             DateTime(const DateTime&);// por copia

             //Sets
             void setYear(double);
             void setMonth(double);
             void setDay(double);
             void setHour(double);
             void setMinute(double);

             //Gets
             double getYear(void);
             double getMonth(void);
             double getDay(void);
             double getHour(void);
             double getMinute(void);

             //Sobrecarga de operadores

             DateTime& operator = (const DateTime&);// asignacion
             DateTime operator + (const double);//suma
             DateTime operator - (const double);//resta
             double operator - (const DateTime);//resta
             bool operator == (const DateTime);//comparacion igual
             bool operator != (const DateTime);//comparacion distdoubleo
			 bool operator < (const DateTime);//comparacion menor
			 bool operator > (const DateTime);//comparacion mayor
             bool operator <= (const DateTime);//comparacion menor o igual
             bool operator >= (const DateTime);//comparacion mayor o igual

             //Destrutor
             ~DateTime(void);
};

//Insercion de flujo
ostream& operator << (ostream&, DateTime);
#endif
